package cn.wolfcode.crm.service;


import cn.wolfcode.crm.domain.Client;
import cn.wolfcode.crm.query.ClientObjectQuery;
import cn.wolfcode.crm.query.PageResult;

import java.util.List;


public interface IClientService {

    void save(Client client);

    void delete(Long id);

    void update(Client client);

    Client get(Long id);

    List<Client> getAll();

    PageResult<Client> query(ClientObjectQuery qo);

    /**
     * 客户移动到资源池
     *
     * @param client 传入要移动要资源池的客户对象
     */
    void changeClientState(Client client);
    
    
    List<Client> queryForClientWhichCompensate(String keyword);
    /** 
     * @Description: 查询所有已经赔付的客户
     * @Param: []
     * @return: java.util.List<cn.wolfcode.crm.domain.Client>
     */


     /*查询客户总数*/
    int selectClientAccount();

     /*查询资源池客户总数*/
    int selectDClientAccount();
}
